<?php


namespace App\Entity\Teacher;


use App\Entity\BaseEntity;

/**
 * Class AddClassesDto
 * @package App\Entity\Teacher
 * @property int $classes
 * @property int $gradeId
 * @property string $classesName
 */
class AddClassesDto extends BaseEntity
{
    public function rules(): array
    {
        return [
            'classes' => 'required',
            'gradeId' => 'required',
        ];
    }

    public function messages(): array
    {
        return [
            'classes.required' => '班级必传',
            'gradeId.required' => '年级必传',
        ];
    }
}
